package com.dayuanit.atm.domain;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Detail {
	private Integer id;
	private String cardNum;
	private Integer amount;
	private Integer optType;
	private String tips;
	private Date createTime;
	
	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("{")
		.append("id").append(":").append(id).append(",")
		.append("cardNum").append(":").append(cardNum).append(",")
		.append("amount").append(":").append(amount).append(",")
		.append("optType").append(":").append(optType).append(",")
		.append("tips").append(":").append(tips).append(",")
		.append("createTime").append(":").append(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(createTime)).append(",")
		.append("}");
		
		return sb.toString();
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getCardNum() {
		return cardNum;
	}

	public void setCardNum(String cardNum) {
		this.cardNum = cardNum;
	}

	public Integer getAmount() {
		return amount;
	}

	public void setAmount(Integer amount) {
		this.amount = amount;
	}

	public Integer getOptType() {
		return optType;
	}

	public void setOptType(Integer optType) {
		this.optType = optType;
	}

	public String getTips() {
		return tips;
	}

	public void setTips(String tips) {
		this.tips = tips;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

}
